package com.ctrip.cap.domain.benchmark;

import java.util.List;

public class MemoryRunningInfo  extends GeneralInfo {
	public long getNativeMemory() {
		return nativeMemory;
	}
	public void setNativeMemory(long nativeMemory) {
		this.nativeMemory = nativeMemory;
	}
	public long getDalvikMemory() {
		return dalvikMemory;
	}
	public void setDalvikMemory(long dalvikMemory) {
		this.dalvikMemory = dalvikMemory;
	}
	public long getOtherMemory() {
		return otherMemory;
	}
	public void setOtherMemory(long otherMemory) {
		this.otherMemory = otherMemory;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public List<DatabaseMemory> getDatabases() {
		return databases;
	}
	public void setDatabases(List<DatabaseMemory> databases) {
		this.databases = databases;
	}
	public void generateOther()
	{
		otherMemory=total-nativeMemory-dalvikMemory;
	}
	
	public long getDatabase() {
		return database;
	}
	public void setDatabase(long database) {
		this.database = database;
	}

	public long getJobId() {
		return jobId;
	}
	public void setJobId(long jobId) {
		this.jobId = jobId;
	}

	private long jobId;
	private long nativeMemory;
	private long dalvikMemory;
	private long otherMemory;
	private long database;
	private long total;
	private List<DatabaseMemory> databases;

}
